#ifndef PAPERBALL_H
#define PAPERBALL_H

#include <QGraphicsItem>
#include <QPainter>
#include <QRandomGenerator>

class PaperBall: public QGraphicsItem
{
private:
    QString content; // 情绪内容

public:
    PaperBall(const QString& text,QGraphicsItem *parent=nullptr); // 构造函数

    QRectF boundingRect() const override;
    void paint(QPainter* painter,const QStyleOptionGraphicsItem* option,QWidget* widget) override;

};

#endif // PAPERBALL_H
